﻿using AutoMapper;
using BCDto.OA.GeneralDatabaseOperation;
using BCEntity.OA.GeneralDatabaseOperation;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MapperProfiles.OA
{
    public class GeneralDatabasesOperationProfile : Profile
    {
        public GeneralDatabasesOperationProfile()
        {
            CreateMap<GeneralDatabaseOperationDatabaseNameDto, GeneralDatabaseOperationDatabaseNameEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<GeneralDatabaseOperationDatabaseNameEntity, GeneralDatabaseOperationDatabaseNameDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<GeneralDatabaseOperationTableNameDto, GeneralDatabaseOperationTableNameEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<GeneralDatabaseOperationTableNameEntity, GeneralDatabaseOperationTableNameDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<GeneralDatabaseOperationColumnNameDto, GeneralDatabaseOperationColumnNameEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<GeneralDatabaseOperationColumnNameEntity, GeneralDatabaseOperationColumnNameDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
